﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Shapes;
using System.Windows.Media;

namespace DiagramCreator.Nodes
{
    public class StopNode : GenericNode
    {
        public StopNode()
        {
            this.NewActionNode.Visibility = System.Windows.Visibility.Hidden;
            this.NewdecissionNode.Visibility = System.Windows.Visibility.Hidden;
            this.NewNoteNode.Visibility = System.Windows.Visibility.Hidden;
            this.StopNode.Visibility = System.Windows.Visibility.Hidden;
            this.StopNodeInner.Visibility = System.Windows.Visibility.Hidden;

            Ellipse circle = new Ellipse();
            circle.Margin = new System.Windows.Thickness(5.0);
            circle.StrokeThickness = 1.0;
            circle.Stroke = Brushes.Black;
            circle.Fill = Brushes.White;
            ShapeGrid.Children.Add(circle);
            circle = new Ellipse();
            circle.Fill = Brushes.Black;
            circle.StrokeThickness = 0.0;
            circle.Margin = new System.Windows.Thickness(8.0);
            ShapeGrid.Children.Add(circle);
            this.Shape = circle;
            NodeTextField.IsEnabled = false;
            NodeTextField.Visibility = System.Windows.Visibility.Hidden;
            NodeTextField.Text = "";
            this.IsSizeable = false;
        }
    }
}
